<template>
	<view>
		<u-tabs lineWidth="50" :inactiveStyle="{
				color: '#5E6266'
			}" :activeStyle="{ 
			color: '#CD128A',
	        fontWeight: 'bold'}" itemStyle="border-bottom:1px solid #EDEFF0; height:40px" :list="list1" @click="click"
			@change="change" lineColor="#CD128A">
			<view slot="right" style="padding-left: 4px; margin-right: 20rpx;" @tap="$u.toast('插槽被点击')">
			</view>
		</u-tabs>
	</view>
</template>

<script>
	import {
		UserService
	} from '../../request/api-package.js'
	export default {
		data() {
			return {
				current: 0,
				indexList: [],
				list1: [{                    name: '娱乐'                }, {                    name: '国际'                }, {                    name: '军事'                }, {                    name: '科技'                }],
				postpone: false,
				keyword: '',
			};
		},
		onShow(e) {
			this.getTaskByStatus();
		},
		onPullDownRefresh() {
			this.getTaskByStatus()
		},
		methods: {
			click(item) {
				console.log('item', item.index)
				if (item.index == 2) {
					this.postpone = true
				} else {
					this.postpone = false
				}
			},
			change(item) {
				//console.log(item.index)
				this.current = item.index;
				this.getTaskByStatus();
			},
			getTaskByStatus(obj) {
				
			},
			refresh() {
				this.getTaskByStatus()
			},
			titleSearch(value) {
				this.keyword = value
				this.getTaskByStatus()
			},
			filtrate() {
				this.$refs.listFiltrate.showmodel(this.projectId)
			}
		}
	}
</script>

<style lang="less" scoped>
	.searchframe {
		display: flex;
		justify-content: space-between;
		margin: 30rpx;

		.search {
			background: #E8EEF7;
			border-radius: 10rpx;
			width: 580rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding-left: 24rpx;
			font-size: 24rpx;
			color: #9199A1;

			.inputframe {
				border: none !important;
			}
		}
	}

	.alltaskbt {
		border: 1px solid #C8CBD0;
		width: 180rpx;
		height: 64rpx;
		border-radius: 8rpx;
		text-align: center;
		line-height: 64rpx;
		font-size: 28rpx;
		color: #2F3133;
	}

	.sticon {
		border: 1px solid #C8CBD0;
		border-radius: 8rpx;
		height: 64rpx;
		width: 64rpx;
		;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	/deep/ .search .u-border {
		border: none
	}
</style>